package visitor;

/**
 * @author wcj
 * @Date 2021/7/12 20:33
 * @Version 1.0
 */
public class Marry extends Visitor {

    @Override
    public void visitMan(Man man) {
        System.out.println("男人结婚时，有妻徒刑");
    }

    @Override
    public void visitWoman(Woman woman) {
        System.out.println("女人结婚时，婚恋保险!");
    }
}
